
$(function() {
	var validator = $("#form_find").validate({
		rules: {
			barcode_s: "required"
		},
		messages: {
		},
		errorPlacement: function(label, element) {
			label.insertAfter(element);
		},
		// set this class to error-labels to indicate valid fields
		success: function(label) {
			// set &nbsp; as text for IE
			label.html("&nbsp;").addClass("checked");
		}
	});

	$("#button_find").click(function(form) {
        if (validator.form()) {
            post_find(this.form);
        }

		$("#barcode_s").val("");
		$("#barcode_s").focus();

		return false;
    });
});